package com.grgbanking.it.project.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.grgbanking.it.base.BaseDao;
import com.grgbanking.it.project.dao.IOperationWorkDao;
import com.grgbanking.it.project.entity.OperationWork;


/**
 * 
 * @author JRainbow 
 */
@Repository 
public class OperationWorkDao extends BaseDao<OperationWork, Integer> implements IOperationWorkDao<OperationWork, Integer> {
	/** 
     * 给HibernateDaoSupport注入一个SessionFactory. 
     * 如果是xml的话，是直接把sesionFactory注入就行了。而这里需要一个额外的setter方法。 
     */  
    @Autowired  
    public void setMySessionFactory(SessionFactory sessionFactory){  
        super.setSessionFactory(sessionFactory);  
    }
}